<?php

return [
    // 上传文件大小限制，单位为字节
    'upload' => [
        'max_size' => 20 * 1024 * 1024, // 10MB
    ],
    // 默认磁盘
    'default' => 'local',
    // 磁盘列表
    'disks'   => [
        'local'  => [
            'type' => 'local',
            'root' => app()->getRuntimePath() . 'storage',
        ],
        'public' => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => app()->getRootPath() . 'public/storage',
            // 磁盘路径对应的外部URL路径
            'url'        => '/storage',
            // 可见性
            'visibility' => 'public',
        ],
        // 更多的磁盘配置信息
    ],
    'aliyun-oss' => [
        // 'type'       => 'oss',
        'access_key_id'  => env('ALIYUN_OSS.ACCESS_KEY_ID', ''),
        'access_key_secret' => env('ALIYUN_OSS.ACCESS_KEY_SECRET', ''),
        'bucket'     => env('ALIYUN_OSS.BUCKET', ''),
        'endpoint'   => env('ALIYUN_OSS.ENDPOINT', '')
    ],
    'file' => [
        'image' => [
            'thumb_width' => 200,
            'type_limit' => env('IMAGE.TYPE_LIMIT', ''),
            'max_size_limit' =>  env('IMAGE.MAXSIZE_LIMIT', 10485760), // 10M
            'directory' => [
                0 => 'dev', // 开发环境测试专用文件夹
                1 => 'customer',
                2 => 'product',
                3 => 'brand',
                4 => 'category',
                5 => 'avatar',
                6 => 'payment_voucher',
                7 => 'firmware',
                8 => 'supply',
                9 => 'miner_video',
                10 => 'returnorder',
                11 => 'invoice',
                12 => 'filingcabinet',
                13 => 'currency',
                14 => 'logistics_voucher',
                15 => 'sn_barcode',
                16 => 'oaperations_oss',
                17 => 'manualbook',
                18 => 'purchase_payment',
                19 => 'order',
                20 => 'order_payment',

            ],
        ]
    ]
];
